package Concurrency.basic.threadInterrupt;

public class InterruptedRunnableDemo extends Thread{
    @Override
    public void run() {
       while (!Thread.currentThread().isInterrupted()) {
           //执行该线程的任务
       }
        System.out.println("done");
    }
}
